﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace HobSoft.SoccerBet2014.Domain.Models.BfRaw
{
    [JsonConverter(typeof(StringEnumConverter))]
    public enum InstructionReportErrorCode
    {
        /// <summary>
        /// 未验证额度
        /// </summary>
        INVALID_BET_SIZE,
        /// <summary>
        /// 未验证Runner
        /// </summary>
        INVALID_RUNNER,
        BET_TAKEN_OR_LAPSED,
        BET_IN_PROGRESS,
        /// <summary>
        /// Runner已经移除
        /// </summary>
        RUNNER_REMOVED,
        MARKET_NOT_OPEN_FOR_BETTING,
        LOSS_LIMIT_EXCEEDED,
        MARKET_NOT_OPEN_FOR_BSP_BETTING,
        INVALID_PRICE_EDIT,
        INVALID_ODDS,
        /// <summary>
        /// 金额不足
        /// </summary>
        INSUFFICIENT_FUNDS,
        INVALID_PERSISTENCE_TYPE,
        /// <summary>
        /// 匹配错误
        /// </summary>
        ERROR_IN_MATCHER,
        INVALID_BACK_LAY_COMBINATION,
        ERROR_IN_ORDER,
        INVALID_BID_TYPE,
        INVALID_BET_ID,
        CANCELLED_NOT_PLACED,
        RELATED_ACTION_FAILED,
        NO_ACTION_REQUIRED,
    }
}
